/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mvc.ligasDeportivas;

import com.beans.LigaBean;
import com.mvc.RequestHandler;
import java.io.IOException;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author victor
 */
public class FormNuevoResultado implements RequestHandler {

    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, NamingException {
        String idLiga = request.getParameter("idLiga");
        String nombre = (String) request.getParameter("nombre");
        String historica = (String) request.getParameter("historica");
        LigaBean liga=new com.gestores.GestionResultadosLigas().consultaLiga(idLiga);
        
        request.setAttribute("liga", liga);
        request.setAttribute("idLiga", idLiga);
        request.setAttribute("nombre", nombre);
        request.setAttribute("historica", historica);
    }

}
